using System;
using System.Collections.Generic;
using UMC.Data;
namespace UMC.WorkFlow.Entities
{
public partial class TaskRequest
{
readonly static Action<TaskRequest,object>[] _SetValues=new Action<TaskRequest,object>[]{(r,t)=>r.Activer=Reflection.ParseObject(t, r.Activer),(r,t)=>r.ActiverAlias=Reflection.ParseObject(t, r.ActiverAlias),(r,t)=>r.ActiveTime=Reflection.ParseObject(t, r.ActiveTime),(r,t)=>r.Alias=Reflection.ParseObject(t, r.Alias),(r,t)=>r.Description=Reflection.ParseObject(t, r.Description),(r,t)=>r.FinishTime=Reflection.ParseObject(t, r.FinishTime),(r,t)=>r.InstanceId=Reflection.ParseObject(t, r.InstanceId),(r,t)=>r.StartTime=Reflection.ParseObject(t, r.StartTime),(r,t)=>r.Status=Reflection.ParseObject(t, r.Status),(r,t)=>r.Subject=Reflection.ParseObject(t, r.Subject),(r,t)=>r.TaskId=Reflection.ParseObject(t, r.TaskId),(r,t)=>r.Username=Reflection.ParseObject(t, r.Username)};
readonly static string[] _Columns=new string[]{"Activer","ActiverAlias","ActiveTime","Alias","Description","FinishTime","InstanceId","StartTime","Status","Subject","TaskId","Username"};
protected override void SetValue(string name, object obv){
var index = Utility.Search(_Columns,name, StringComparer.CurrentCultureIgnoreCase);
if (index > -1)_SetValues[index](this, obv);
}
protected override void GetValues(Action<String, object> action){
AppendValue(action,"Activer", this.Activer);
AppendValue(action,"ActiverAlias", this.ActiverAlias);
AppendValue(action,"ActiveTime", this.ActiveTime);
AppendValue(action,"Alias", this.Alias);
AppendValue(action,"Description", this.Description);
AppendValue(action,"FinishTime", this.FinishTime);
AppendValue(action,"InstanceId", this.InstanceId);
AppendValue(action,"StartTime", this.StartTime);
AppendValue(action,"Status", this.Status);
AppendValue(action,"Subject", this.Subject);
AppendValue(action,"TaskId", this.TaskId);
AppendValue(action,"Username", this.Username);
}

 protected override RecordColumn[] GetColumns(){
 var cols = new RecordColumn[12];
cols[0]= RecordColumn.Column("Activer",this.Activer);
cols[1]= RecordColumn.Column("ActiverAlias",this.ActiverAlias);
cols[2]= RecordColumn.Column("ActiveTime",this.ActiveTime);
cols[3]= RecordColumn.Column("Alias",this.Alias);
cols[4]= RecordColumn.Column("Description",this.Description);
cols[5]= RecordColumn.Column("FinishTime",this.FinishTime);
cols[6]= RecordColumn.Column("InstanceId",this.InstanceId);
cols[7]= RecordColumn.Column("StartTime",this.StartTime);
cols[8]= RecordColumn.Column("Status",this.Status);
cols[9]= RecordColumn.Column("Subject",this.Subject);
cols[10]= RecordColumn.Column("TaskId",this.TaskId);
cols[11]= RecordColumn.Column("Username",this.Username);
return cols;
}

}
}

